package org.gpslw.controller;

import org.geotools.api.feature.simple.SimpleFeature;
import org.gpslw.util.WfsUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/supermap")
public class SuperController {



    @RequestMapping("/list")
    public Map<String,List<SimpleFeature>> simpleList(@RequestParam("wfsUrl") String url) {
        return WfsUtils.readSuperMapWfs(url);
    }
}
